package com.ruoyi.hospital.mapper;

import com.ruoyi.common.core.domain.hospital.*;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MrOutDataMapper {

    public List<OutPatList> getOutPatList(OutPatList outPatList);

    @Select("select count(0) from VIEW_SLYLT_OutPatList")
    public int getOutPatListCount(OutPatList outPatList);

    public int updateHpOutpatlist(OutPatList outPatList);

    public int insertHpOutpatlist(OutPatList outPatList);

    public int insertHpMroutbaisc(MrOutBaisc mrOutBaisc);

    public int insertHpMroutrecord(MrOutRecord mrOutRecord);

    public int insertHpMroutdiagnoss(MrOutDiagnoss mrOutDiagnoss);

    public int insertHpMroutorder(MrOutOrder mrOutOrder);

    public int insertHpMroutphysicalsign(MrOutPhysicalsign mrOutPhysicalsign);

    @Delete("delete from hp_outpatlist where id = #{id}")
    public int deletedOutPatList(String id);

    @Delete("delete from hp_mroutbaisc where onlyId = #{onlyId}")
    public int deleteMrOutBaisc(String onlyId);

    @Delete("delete from hp_mroutdiagnoss where id = #{onlyId}")
    public int deleteMrOutDiagnoss(String onlyId);

    @Delete("delete from hp_mroutorder where id = #{onlyId}")
    public int deleteMrOutOrder(String onlyId);

    @Delete("delete from hp_mroutphysicalsign where id = #{onlyId}")
    public int deleteMrOutPhysicalsign(String onlyId);

    @Delete("delete from hp_mroutrecord where id = #{onlyId}")
    public int deleteMrOutRecord(String onlyId);

    @Select("select * from hp_mroutbaisc where onlyId = #{onlyId}")
    public MrOutBaisc queryMrOutBaisc(String onlyId);

    @Select("select * from hp_mroutdiagnoss where id = #{onlyId}")
    public List<MrOutDiagnoss> queryMrOutDiagnoss(String onlyId);

    @Select("select * from hp_mroutorder where id = #{onlyId}")
    public List<MrOutOrder> queryMrOutOrder(String onlyId);

    @Select("select * from hp_mroutphysicalsign where id = #{onlyId}")
    public List<MrOutPhysicalsign> queryMrOutPhysicalsign(String onlyId);

    @Select("select * from hp_mroutrecord where id = #{onlyId}")
    public MrOutRecord queryMrOutRecord(String onlyId);

    public int saveLog(PostResult postResult);
}
